package com.wooming.myserver.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class PageController {

    @GetMapping("/")
    public String home() {
        System.out.println("Home页面访问");
        return "Home";
    }

    @GetMapping("/user")
    public String user() {
        System.out.println("User页面访问");
        return "User";
    }

    @GetMapping("/userProfile")
    public String userProfile() {
        System.out.println("UserProfile页面访问");
        return "UserProfile";
    }

    @GetMapping("/rank")
    public String rank() {
        System.out.println("Rank页面访问");
        return "Rank";
    }

    @GetMapping("/about")
    public String about() {
        System.out.println("About页面访问");
        return "About";
    }

    @GetMapping("/game")
    public String game() {
        System.out.println("Game页面访问");
        return "Game";
    }

    @GetMapping("/error")
    public String error() {
        System.out.println("Error页面访问");
        return "Error";
    }
}
